package com.cms.biz.pending.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.framework.sys.business.AbstractBusinessObjectServiceMgr;

import com.cms.biz.pending.CMSPendingServiceMgr;
import com.cms.biz.pending.query.EMPPendingDepartmentComfireQuery;
import com.cms.biz.pending.query.EMPPendingFlowQuery;
import com.cms.biz.queryAnalyse.query.EMPSCTZSYSLQuery;
import com.efounder.dict.FCTServiceMgr;
import com.efounder.eai.data.JParamObject;
import com.efounder.eai.data.JResponseObject;

@Transactional(rollbackFor = Exception.class)
@Service("CMSPendingServiceMgr")
public class CMSPendingServiceMgrImpl extends AbstractBusinessObjectServiceMgr implements CMSPendingServiceMgr {

	@Autowired
	private                 EMPPendingFlowQuery                  pendingFlowQuery;
	
	@Autowired
	private                            FCTServiceMgr                   FCTService;
	
	@Autowired
	private    EMPPendingDepartmentComfireQuery            departmentComfireQuery;

	//--------------------------------------------------------------------------------------------------
	// 描述:代办任务查询
	// 设计: ES(2013.09.12)
	// 实现: ES
	// 修改:
	// --------------------------------------------------------------------------------------------------
	public JResponseObject loadPendingFlow(JParamObject PO) {
		return pendingFlowQuery.QueryObject(PO);
	}

	//--------------------------------------------------------------------------------------------------
	// 描述:代办任务查询
	// 设计: ES(2013.09.12)
	// 实现: ES
	// 修改:
	public JResponseObject loadDepartmentConfirmPendingFlow(JParamObject PO) {		
		return departmentComfireQuery.QueryObject(PO);
	}

	//--------------------------------------------------------------------------------------------------
	// 描述:公告通知查询
	// 设计: ES(2013.09.12)
	// 实现: ES
	// 修改:
	@Override
	public JResponseObject loadNiticeMessage(JParamObject PO) {
		JResponseObject       RO = null;
		RO = new JResponseObject(FCTService.getFCTRows(PO), 0);
		return RO;
	}
}
